import { Component } from "react"
import Son from './components/Son'


class App extends Component {
  state = {
    count: 1e6
  }
  money=(price)=> {
    this.setState({
      count: this.state.count + price
    })
  }

  render () {
    return (
      <>
      <div>父</div>
      <hr />
      <Son count={this.state.count} money={this.money}></Son>
      </>
    )
  }
}
export default App